package IO;

import java.io.*;

/**缓
 *冲字符流
 */
public class PWDemo {
    public static void main(String[] args) throws FileNotFoundException {
        FileOutputStream fos = new FileOutputStream("./File/pw.txt",true); //文件输出流
        OutputStreamWriter osw = new OutputStreamWriter(fos);  //字符转换为字节
        BufferedWriter bw = new BufferedWriter(osw); //缓冲流,小车（8k字节 ）
        PrintWriter pw = new PrintWriter(bw);    //写入

        pw.println("北方姑娘");
        pw.println("是否习惯南方的秋凉");
        System.out.println("写出完毕");

        pw.close();
    }
}
